package com.yami.shop.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yami.shop.bean.app.dto.CarListDto;
import com.yami.shop.bean.app.dto.SearchCarDto;
import com.yami.shop.bean.app.param.CarListParam;
import com.yami.shop.bean.model.CarManagement;
import com.yami.shop.common.util.PageAdapter;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * CarManagementMapper
 *
 * @Author Administrator
 * @Date 2025/4/10 16:40
 */
public interface CarManagementMapper extends BaseMapper<CarManagement> {
    List<CarListDto> carList(@Param("adapter") PageAdapter pageAdapter, @Param("ridgepole") String ridgepole, @Param("roomNumber") String roomNumber);

    long countCarList(@Param("ridgepole") String ridgepole, @Param("roomNumber") String roomNumber);

    List<CarListDto> getMyCarList(@Param("roomId") Integer roomId);

    int getCarCount(@Param("roomId") Integer roomId);

    int getLicensePlateNumberCount(@Param("licensePlateNumber") String licensePlateNumber);

    SearchCarDto getCarByLicensePlateNumber(@Param("licensePlateNumber") String licensePlateNumber);

    void updateLicensePlateNumber(@Param("id") Integer id, @Param("ridRoom") Integer ridRoom, @Param("licensePlateNumber") String licensePlateNumber);
}
